/* Copyright 2001,2002,2003 NAH6 BV
 * All Rights Reserved
 *
 *  $Header: /var/lib/cvs/secphone/ui/rng/sources/esrcCryptoApi.h,v 1.3 2003/11/21 12:39:24 itsme Exp $
 *
 *
 */


#ifndef __ESRCCRYPTOAPI_H__

#include <windows.h>    // nescesary for wincrypt
#include <wincrypt.h>

#include "fnaEntropySource.h"

class esrcCryptoApi : public EntropySource {
public:
    esrcCryptoApi();
    virtual ~esrcCryptoApi();

    virtual void HandleSource();

    virtual bool IsPolledSource() const;

    virtual const char* name() const { return "esrcCryptoApi"; }

private:
    HCRYPTPROV m_hProv;
};

#define __ESRCCRYPTOAPI_H__
#endif

